//
//  RedController.swift
//  CustomPresent
//
//  Created by dyoung on 2022/2/8.
//

import UIKit

class BlueController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = .white
        
        let b = UIButton()
        b.backgroundColor = .blue
        view.addSubview(b)
        b.addTarget(self, action: #selector(clicked), for: .touchUpInside)
        b.snp.makeConstraints { m in
            m.center.equalToSuperview()
            m.height.width.equalTo(100)
        }
    }
    
    @objc func clicked() {
        UIViewController.current?.navigationController?.pushViewController(PageCController(), animated: true)
    }

}
